package cc.rengu.redp.bizimpl.csmc.service;

import cc.rengu.redp.bizimpl.csmc.domain.CSubjectInfo;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @author lizk
 */
public interface ICSubjectInfoService extends IService<CSubjectInfo> {

    IPage<CSubjectInfo> findByPage(QueryRequest queryRequest, CSubjectInfo subjectInfo);

    void createSubjectInfo(CSubjectInfo subjectInfo) throws RedpException;

    void updateSubjectInfo(CSubjectInfo subjectInfo) throws RedpException;

    Map<String, Object> tagsData(String q, String flag, QueryRequest request);
}
